import httpRequest from "@/services";
export function getPersonRecordList(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/record/personList",
    method: "post",
    params: {
      ...params,
    },
  });
}

export function addStation(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/station",
    method: "post",
    params: {
      ...params,
    },
  });
}

export function editStation(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/station",
    method: "put",
    params: {
      ...params,
    },
  });
}

export function deleteStation(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/station/"+ params,
    method: "delete",
    params: {
      ...params,
    },
  });
}

export function getImg(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/image/get/"+ params,
    method: "get",
    params: {
      ...params,
    },
  });
}

